package com.ruoyi.mes.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备资产管理对象 tb_equipment_assets
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class EquipmentAssets extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资产唯一标识 */
    private Long assetId;

    /** 设备ID，外键关联设备表 */
    @Excel(name = "设备ID，外键关联设备表")
    private Long equipmentId;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String assetNumber;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 采购价格 */
    @Excel(name = "采购价格")
    private BigDecimal purchasePrice;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private String usageStatus;

    public void setAssetId(Long assetId) 
    {
        this.assetId = assetId;
    }

    public Long getAssetId() 
    {
        return assetId;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }
    public void setAssetNumber(String assetNumber) 
    {
        this.assetNumber = assetNumber;
    }

    public String getAssetNumber() 
    {
        return assetNumber;
    }
    public void setPurchaseDate(Date purchaseDate) 
    {
        this.purchaseDate = purchaseDate;
    }

    public Date getPurchaseDate() 
    {
        return purchaseDate;
    }
    public void setPurchasePrice(BigDecimal purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public BigDecimal getPurchasePrice() 
    {
        return purchasePrice;
    }
    public void setUsageStatus(String usageStatus) 
    {
        this.usageStatus = usageStatus;
    }

    public String getUsageStatus() 
    {
        return usageStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assetId", getAssetId())
            .append("equipmentId", getEquipmentId())
            .append("assetNumber", getAssetNumber())
            .append("purchaseDate", getPurchaseDate())
            .append("purchasePrice", getPurchasePrice())
            .append("usageStatus", getUsageStatus())
            .toString();
    }
}
